package kz.kstu.scantest.business.entity.form;

import kz.kstu.scantest.business.entity.data.FieldNameEnum;

import java.util.LinkedHashMap;
import java.util.Map;

/**
 * @author Filipp_Stankevich
 *         created: 08.09.11 15:47
 */
public class Form {
    Map<FieldNameEnum, Field> fields = new LinkedHashMap<FieldNameEnum, Field>();

    public Map<FieldNameEnum, Field>  getFields() {
        return fields;
    }

    public void setFields(Map<FieldNameEnum, Field> fields) {
        this.fields = fields;
    }

    public void addField(Field field) {
        fields.put(field.getFieldName(), field);
    }
}
